-- TGDLoot UI elements go here

TGDLootUI = {}

function TGDLootUI:createClientLootWindow()
	local lootFrame = CreateFrame("Frame", nil, UIParent);
	lootFrame:ClearAllPoints();
	lootFrame:SetBackdrop(StaticPopup1:GetBackdrop());
	lootFrame:SetHeight(100);
	lootFrame:SetWidth(400);
	 
	lootFrame.text = lootFrame:CreateFontString(nil, "BACKGROUND", "GameFontNormal");
	lootFrame.text:SetAllPoints();
	lootFrame.text:SetText("Loot Frame!");
	lootFrame:SetPoint("CENTER", 0, 0);
	
	lootFrame.needButton = CreateFrame("Button","needButton", lootFrame, "UIPanelButtonTemplate");
	lootFrame.needButton:SetPoint("RIGHT",-20,20);
	lootFrame.needButton:SetWidth(80);
	lootFrame.needButton:SetHeight(22);
	lootFrame.needButton:Show();
	lootFrame.needButton:SetText("Need");
    lootFrame.needButton:SetScript("OnClick", function() TGDLootUIHandlers:onClickNeed(lootFrame); end);
	
	lootFrame.passButton = CreateFrame("Button","passButton", lootFrame, "UIPanelButtonTemplate");
	lootFrame.passButton:SetPoint("RIGHT",-20,-20);
	lootFrame.passButton:SetWidth(80);
	lootFrame.passButton:SetHeight(22);
	lootFrame.passButton:Show();
	lootFrame.passButton:SetText("Pass");
	lootFrame.passButton:SetScript("OnClick", function() TGDLootUIHandlers:onClickPass(lootFrame) end);
end


